FROM openjdk:8-jdk-alpine
ARG version
RUN apk update && apk upgrade && apk add ca-certificates && update-ca-certificates \
    && apk add --update tzdata && cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
    && echo "Asia/Shanghai" > /etc/timezone \
    && rm -rf /var/cache/apk/*
ENV TZ=Asia/Shanghai
ADD target/ucs-oss.jar ucs-oss.jar
RUN mkdir /files
ENTRYPOINT java -Xms512m -Xmx1027m -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5008 -jar /ucs-oss.jar
